package entity;

import java.util.Date;

public class Teacher {
    private int tno;
    private String tname;
    private String gender;
    private Date birthdate;

    public Teacher(int tno, String tname, String gender, Date birthdate) {
        this.tno = tno;
        this.tname = tname;
        this.gender = gender;
        this.birthdate = birthdate;
    }



    public int getTno() {
        return tno;
    }

    public void setTno(int tno) {
        this.tno = tno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getDenger() {
        return gender;
    }

    public void setDenger(String gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return  birthdate;
    }

    public void setBirthday(Date birthday) {
        this.birthdate = birthday;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tno=" + tno +
                ", tname='" + tname + '\'' +
                ", denger='" + gender + '\'' +
                ", birthday=" + birthdate +
                '}';
    }
}
